#pragma once

#include "transformable.h"
#include <osg\Vec3>
#include <osg\Vec4>
#include <osg\ref_ptr>
#include <osg\Geode>
#include "vrdatacore_global.h"

namespace VrDataCore
{
	class VRDATACORE_EXPORT Grid : public CoreBase::Transformable
	{
	public:
		Grid(const osg::Vec3& center, float length, float width, int row, int col,const osg::Vec4& color,
			const QString& name = "Grid");
		Grid(osg::MatrixTransform& node,CoreBase::ActorBase* owneractor, const QString& name = "Grid");

		virtual osg::Node* getOSGNode();
		virtual const osg::Node* getOSGNode() const;
   protected:
      virtual ~Grid();
	  osg::ref_ptr<osg::Geode>		_gridGeode;
	};
}